<?php
	include "./addons/AdManager/config/config.php";
	include "./addons/AdManager/expand/common.html";
?>
<?php
	if ($lywq['AdManager']['article']['status']==1 && $lywq['AdManager']['status']==1) { 
    	if ($lywq['AdManager']['article']['type'] == 1){ 
    		echo '<div>' .$lywq['AdManager']['article']['code']. '</div>';
		}
		if ($lywq['AdManager']['article']['type'] == 2){
    		echo '<a href="' .$lywq['AdManager']['article']['url']. '" >';
    		echo '<img src="' .$lywq['AdManager']['article']['image']. '" width="100%" />';
    		echo '</a>';
		}
		if ($lywq['AdManager']['article']['type'] == 3){
			if ($_COOKIE["Zterminal"]=='true') {
				echo '<p>' .$lywq['AdManager']['article']['Zcode']. '</p>';
			}else{
				echo '<p>' .$lywq['AdManager']['article']['Qcode']. '</p>';
			}
		}
    }
?>